package clinic.ms.mapper;

import clinic.ms.entity.Home;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.ArrayList;

@Component
@Mapper
public interface HomeMapper {
    void insertHome(@Param("home") Home home);
    ArrayList<Home> queryByNoAndName(@Param("homeNo") String homeNo, @Param("homeName") String homeName);

    int deleteByNo(@Param("homeNo") String homeNo);

    Home queryByNo(@Param("homeNo")String homeNo);

    int updateByNo(@Param("home") Home home);
}
